Skip to content

Conversation

sandhose
Copy link
Member

  • Surface the user guest flag in the admin API
  • Allow filtering guest/non-guest users

Copy link

cloudflare-workers-and-pages bot commented Sep 15, 2025

Deploying matrix-authentication-service-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 1e1dfda
Status: ✅  Deploy successful!
Preview URL: https://b576ba81.matrix-authentication-service-docs.pages.dev
Branch Preview URL: https://quenting-admin-api-user-gues.matrix-authentication-service-docs.pages.dev

View logs

@sandhose sandhose force-pushed the quenting/admin-api/user-guest branch from bd84504 to 58e075b Compare September 15, 2025 08:45
@sandhose sandhose added A-Admin-API Related to the admin API T-Enhancement New feature of request labels Sep 15, 2025
@sandhose sandhose requested a review from reivilibre September 15, 2025 08:46
.add_option(self.can_request_admin().map(|can_request_admin| {
Expr::col((Users::Table, Users::CanRequestAdmin)).eq(can_request_admin)
}))
.add_option(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is the index on (is_guest, can_request_admin) intended to be a future PR?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, but also low-priority for now, it is performant enough in most cases

@sandhose sandhose force-pushed the quenting/admin-api/user-guest branch from 58e075b to c774648 Compare September 15, 2025 09:13
@sandhose sandhose enabled auto-merge September 15, 2025 09:14
@sandhose sandhose force-pushed the quenting/admin-api/user-guest branch from c774648 to 278d2af Compare September 15, 2025 10:41
@sandhose sandhose force-pushed the quenting/admin-api/user-guest branch from 278d2af to 1e1dfda Compare September 15, 2025 10:51
@sandhose sandhose merged commit 18cb990 into main Sep 15, 2025
17 checks passed
@sandhose sandhose deleted the quenting/admin-api/user-guest branch September 15, 2025 10:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Admin-API Related to the admin API T-Enhancement New feature of request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants